package lesson1_20.lesson16;


public class TestDemo {

    public static void main(String[] args) {
        //values()，获取枚举的所有数据，返回的是一个数组
        for (Color3 color : Color3.values()) {
            int id = color.ordinal();
            String name = color.name();
            String title = color.toString();
            System.out.println(id + "====" + name + "====" + title);
        }


    }
}
